package com.my.service.impl;

import com.my.mapper.UserInfoMapper;
import com.my.pojo.UserInfo;
import com.my.service.IUserInfoService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Data
@Service
public class UserInfoServiceImpl implements IUserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    public boolean insertUserInfo(UserInfo userInfo) {
        return userInfoMapper.insertUserInfo(userInfo);
    }

    public Boolean isExistFileInfo(String userName, String password) {
        return userInfoMapper.isExistFileInfo(userName,password);
    }
}
